#include "thread_pool.hpp"
#include "task.hpp"

int main()
{
  srand((unsigned long)time(nullptr));
  ThtreadPool<Task>* tp = ThtreadPool<Task>::GetInstance();
  
  tp->InitThreadPool();
  const char* operations = "+-*/%";
  while(true){
    int x = rand() % 100 + 1;
    int y = rand() % 100 + 1;
    tp->Push(Task(x, y, operations[rand() % 5]));
    sleep(1);
  }  
  return 0;
}
